package com.Yukiha.gachamod.gachaMenu;

import com.Yukiha.gachamod.gachaMenu.client.gui.GachaBookMenu;
import net.minecraft.network.chat.Component;
import net.minecraft.world.MenuProvider;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.inventory.AbstractContainerMenu;

import java.util.UUID;

public class GachaBookMenuProvider implements MenuProvider {

    private final UUID playerUUID;

    public GachaBookMenuProvider(UUID uuid) {
        this.playerUUID = uuid;
    }

    @Override
    public Component getDisplayName() {
        return Component.literal("抽卡图鉴");
    }

    @Override
    public AbstractContainerMenu createMenu(int containerId, Inventory inventory, net.minecraft.world.entity.player.Player player) {
        return new GachaBookMenu(containerId, inventory, playerUUID);
    }
}
